home *** CD-ROM | disk | FTP | other *** search
- Path: river.tay.ac.uk!insc2mb
- From: insc2mb@river.tay.ac.uk (Mr persil)
- Newsgroups: comp.lang.c
- Subject: c not writing to file
- Message-ID: <1996Feb1.115146.24139@river.tay.ac.uk>
- Date: 1 Feb 96 11:51:46 GMT
- Organization: University of Abertay Dundee
-
-
-
-
- this is a sample of my lines of code
-
-
- this should add the variable word to the end of file, but doesn't
-
- i used a text editor to create the file
-
-
- text1 = fopen(filename,"a");
- fprintf (text1,word)
- fclose (text1)
-
- writes something to the hard disk, but nothing appends to the end of
- the file
-
-
- if i create the file using a c program it appends the word to the
- end
-
-
- any ideas would be great
-
-
- cheers
-
-
- the mega me
-
-
-
-